home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / gamesa / frmmain.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-08-01  |  2.8 KB  |  99 lines

  1. VERSION 5.00
  2. Begin VB.Form frmMain 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "Games"
  5.    ClientHeight    =   2670
  6.    ClientLeft      =   150
  7.    ClientTop       =   435
  8.    ClientWidth     =   3285
  9.    Icon            =   "frmMain.frx":0000
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    Moveable        =   0   'False
  14.    ScaleHeight     =   2670
  15.    ScaleWidth      =   3285
  16.    ShowInTaskbar   =   0   'False
  17.    StartUpPosition =   2  'CenterScreen
  18.    Begin VB.CommandButton cmdHelp 
  19.       Caption         =   "&Help"
  20.       Height          =   495
  21.       Left            =   1822
  22.       TabIndex        =   3
  23.       Top             =   1092
  24.       Width           =   1215
  25.    End
  26.    Begin VB.CommandButton cmdBuckets 
  27.       Caption         =   "Buc&kets"
  28.       Default         =   -1  'True
  29.       Height          =   495
  30.       Left            =   247
  31.       TabIndex        =   0
  32.       Top             =   244
  33.       Width           =   1215
  34.    End
  35.    Begin VB.CommandButton cmdShuffle 
  36.       Caption         =   "&Puzzle"
  37.       Height          =   495
  38.       Left            =   1822
  39.       TabIndex        =   1
  40.       Top             =   252
  41.       Width           =   1215
  42.    End
  43.    Begin VB.CommandButton cmdTTT 
  44.       Caption         =   "&Tic Tac Toe"
  45.       Height          =   495
  46.       Left            =   247
  47.       TabIndex        =   2
  48.       Top             =   1084
  49.       Width           =   1215
  50.    End
  51.    Begin VB.CommandButton cmdExit 
  52.       Cancel          =   -1  'True
  53.       Caption         =   "E&xit"
  54.       Height          =   495
  55.       Left            =   982
  56.       TabIndex        =   4
  57.       Top             =   1932
  58.       Width           =   1335
  59.    End
  60. Attribute VB_Name = "frmMain"
  61. Attribute VB_GlobalNameSpace = False
  62. Attribute VB_Creatable = False
  63. Attribute VB_PredeclaredId = True
  64. Attribute VB_Exposed = False
  65. Option Explicit
  66. Private Declare Function OSWinHelp% Lib "user32" Alias "WinHelpA" (ByVal hwnd&, ByVal HelpFile$, ByVal wCommand%, dwData As Any)
  67. Private Sub cmdBuckets_Click()
  68. Unload frmMain
  69. End Sub
  70. Private Sub cmdExit_Click()
  71. Unload frmMain
  72. frmAbout.Show 1
  73. End Sub
  74. Private Sub cmdHelp_Click()
  75. Dim nRet As Integer
  76. If Len(App.HelpFile) = 0 Then
  77. MsgBox "Unable to display Help Contents. There is no Help associated with this project.", vbInformation, Me.Caption
  78. On Error Resume Next
  79. nRet = OSWinHelp(Me.hwnd, App.HelpFile, 3, 0)
  80. If Err Then
  81. MsgBox Err.Description
  82. End If
  83. End If
  84. End Sub
  85. Private Sub cmdShuffle_Click()
  86. Unload frmMain
  87. shuffle
  88. End Sub
  89. Private Sub cmdTTT_Click()
  90. Unload frmMain
  91. tictactoe
  92. End Sub
  93. Private Sub Form_Unload(Cancel As Integer)
  94. Dim i As Integer
  95. For i = Forms.Count - 1 To 1 Step -1
  96. Unload Forms(i)
  97. Next i
  98. End Sub
  99.